package org.qydjk.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "s_role_resource", catalog = "qydjk")
public class SRoleResource implements java.io.Serializable {
	private static final long serialVersionUID = 8038409218373233267L;
	private Integer id;
	private Integer roleId;
	private Integer resourceId;

	// Constructors

	/** default constructor */
	public SRoleResource() {
	}

	/** full constructor */
	public SRoleResource(Integer roleId, Integer resourceId) {
		this.roleId = roleId;
		this.resourceId = resourceId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "role_id", nullable = false)
	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Column(name = "resource_id", nullable = false)
	public Integer getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}

}